package com.sdutcm.Service.ServiceImpl;

import com.sdutcm.Domain.Attendance;
import com.sdutcm.Domain.Attendance2;
import com.sdutcm.Mapper.AttMapper;
import com.sdutcm.Service.AttService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*
 *@Author Yan
 *@Create 2019-08-24 10:25
 */
@Service
public class AttServiceImpl implements AttService {

    @Autowired
    private AttMapper attMapper;

    public List<List<String>> attfind() throws Exception {
        return null;
    }

    @Override
    public void att1201edit(Attendance attendance) throws Exception {
            attMapper.attendance_studentedit1(attendance);
            attMapper.attendance_studentedit2(attendance);
            attMapper.attendance_studentedit3(attendance);
            attMapper.attendance_studentedit4(attendance);
            attMapper.attendance_studentedit5(attendance);
            attMapper.attendance_studentedit6(attendance);
            attMapper.attendance_studentedit7(attendance);
            attMapper.attendance_studentedit8(attendance);
            attMapper.attendance_studentedit9(attendance);
            attMapper.attendance_studentedit10(attendance);
            attMapper.attendance_studentedit11(attendance);
            attMapper.attendance_studentedit12(attendance);
            attMapper.attendance_studentedit13(attendance);
            attMapper.attendance_studentedit14(attendance);
            attMapper.attendance_studentedit15(attendance);

    }

    @Override
    public void attAdminedit(Attendance attendance) throws Exception {
        attMapper.attendance_studentedit01(attendance);
        attMapper.attendance_studentedit02(attendance);
        attMapper.attendance_studentedit03(attendance);
        attMapper.attendance_studentedit04(attendance);
        attMapper.attendance_studentedit05(attendance);
        attMapper.attendance_studentedit06(attendance);
        attMapper.attendance_studentedit07(attendance);
        attMapper.attendance_studentedit08(attendance);
        attMapper.attendance_studentedit09(attendance);
        attMapper.attendance_studentedit010(attendance);
        attMapper.attendance_studentedit011(attendance);
        attMapper.attendance_studentedit012(attendance);
        attMapper.attendance_studentedit013(attendance);
        attMapper.attendance_studentedit014(attendance);
        attMapper.attendance_studentedit015(attendance);
    }


    @Override
    public List<Attendance2> att1201list() throws Exception {
        return null;
    }

    @Override
    public void attdeleteById(String s_id,String a_id) throws Exception {
        attMapper.attdeleteById(s_id,a_id);
    }




}
